<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
        <title>我的信息</title>
        <link rel="stylesheet" href="__PUBLIC__/User/css/weui.css"/>
        <script src="__PUBLIC__/User/js/jweixin-1.1.0.js"></script>
        <script src="__PUBLIC__/User/js/jquery.js"></script>
        <script>
            $(function(){
                /* 微信jssdk验证区域开始 */
                wx.config({
                    //关闭调试模式
                    debug: false,
                    appId: '<?php echo $signPackage["appId"];?>',
                    timestamp: <?php echo $signPackage["timestamp"];?>,
                    nonceStr: '<?php echo $signPackage["nonceStr"];?>',
                    signature: '<?php echo $signPackage["signature"];?>',
                    jsApiList: [
                      'closeWindow','hideOptionMenu'
                    ]
                });

                /* 微信jssdk验证区域结束 */
                wx.ready(function(){
                    //屏蔽菜单
                    wx.hideOptionMenu();
                });
                function close_window(){
                    wx.closeWindow();
                }

                $('#submit_no').bind('click',function(){
                    close_window();
                });

                var has_dealt = <?php echo $dealt;?>;
                $('#submit_yes').bind('click',function(){
                    if(has_dealt==1){
                        //重复提交提示
                        $('#dialog2').show();
                    }else if(has_dealt==0){
                        //提交提示
                        $('#dialog1').show();
                    }
                });
                $('#dialog2 a').bind('click',function(){
                    $('#dialog2').hide();
                });
                $('#dialog1 a:eq(0)').bind('click',function(){
                    $('#dialog1').hide();
                });
                $('#dialog1 a:eq(1)').bind('click',function(){
                    location.href = '__MODULE__/Update/index';
                    $('#dialog1').hide();
                });
            });
        </script>
    </head>
    <body>
    	<!-- 审核信息开始 -->
        <div id="dialog2" style="display:none;">
            <div class="weui-mask"></div>
                <div class="weui-dialog">
                    <div class="weui-dialog__hd"><strong class="weui-dialog__title">温馨提示</strong></div>
                    <div class="weui-dialog__bd" id="dialog2_msg">
                        您的信息已在审核中,请勿重复提交!
                    </div>
                    <div class="weui-dialog__ft">
                    <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary" id="dialog2_but">好的</a>
                    </div>
                </div>
            </div>
        </div>
		<!-- 审核信息结束 -->
		
        <div id="dialog1" style="display:none;">
            <div class="weui-mask"></div>
                <div class="weui-dialog">
                    <div class="weui-dialog__hd"><strong class="weui-dialog__title">操作提示</strong></div>
                    <div class="weui-dialog__bd">信息审核期间,将不可再进行修改操作!确定要提交审核吗？
                    </div>
                    <div class="weui-dialog__ft">
                    <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_default">取消</a>
                    <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary">确定</a>
                    </div>
                </div>
            </div>
        </div>
        <div class="weui-panel__bd">
            <?php
                foreach($menu as $k => $v):
                if($v['display']):
            ?>
            <a style="padding:2px;" href="__MODULE__/List/index/corpid/<?php echo $corpid;?>/menu/<?php echo $v['name']?>" class="weui-media-box weui-media-box_appmsg">
                <div class="weui-media-box__hd">
                    <img style="vertical-align: middle;width:40px;" class="weui-media-box__thumb" src="<?php echo $v['thumb'];?>" alt="">
                </div>
                <div class="weui-media-box__bd">
                    <h4 class="weui-media-box__title">
                        <?php 
                            echo $v['caption'];
                        ?>
                    </h4>
                </div>
            </a>
            <?php
            	endif;
                endforeach;
            ?>
        </div>
        <div style="padding:20px;">
            <a id="submit_yes" href="javascript:;" class="weui-btn weui-btn_primary">提交审核</a>
            <a id="submit_no" href="javascript:;" class="weui-btn weui-btn_disabled weui-btn_default">关闭</a>
        </div>
        <div class="weui-footer">
            <p class="weui-footer__links">
                <a href="javascript:void(0);" class="weui-footer__link">中国航天</a>
            </p>
            <p class="weui-footer__text">Copyright &copy; 2008-2016</p>
        </div>
    </body>
</html>